package com.intelligence.farm.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.intelligence.entity.pojo.Farm;
import com.intelligence.entity.vo.FarmVo;
import com.intelligence.farm.mapper.FarmMapper;
import com.intelligence.farm.service.FarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【t_farm(基地)】的数据库操作Service实现
* @createDate 2024-05-16 18:46:34
*/
@Service
public class FarmServiceImpl extends ServiceImpl<FarmMapper, Farm>
    implements FarmService {
    @Autowired
    private FarmMapper farmMapper;
    @Override
    public Page<FarmVo> findFarmAndType(Integer offset, Integer pageSize, String cityName, String type) {
        return this.farmMapper.findFarmAndType(new Page<FarmVo>(offset,pageSize),cityName,type);
    }
}




